package Prototype;


/**
 * 实例-1产品
 * Created by Garden on 2019/5/13.
 */
public class ProductOne implements AbstractProduct,Cloneable {

    private String assemblyOne;

    public ProductOne(String assemblyOne){
        this.assemblyOne = assemblyOne;
    }

    public String getAssemblyOne(){
        return this.assemblyOne;
    }

    @Override
    public void introduce() {
        System.out.println("==== this is product-one ====");
    }

    @Override
    public Object clone(){
        ProductOne o = null;
        try{
            o = (ProductOne)super.clone();
        }catch(CloneNotSupportedException e){
            e.printStackTrace();
        }
        return o;
    }
}
